package com.experiment06;
import com.experiment06.BusinessLogic;
import com.experiment06.BusinessLogicImpl;
import com.experiment06.ContainerUtils;

import java.sql.SQLOutput;
import java.util.List;

import static com.experiment06.BusinessLogic.b;

public class Test {
    public static void main(String[] args) {
        Ship ship = new Ship(200,1,"货船");
        try{
           b.overWeight(ship,ContainerUtils.CONTAINERS);
            System.out.println(ship.getName());
        }catch (MyException e) {
            System.out.println(e.getMessage());
        }finally {
            System.out.println("启航");
        }
    }
}
